package com.slz3.business.module.orderManagement.ordOrderLogistics.steward;

import com.slz3.business.frame.response.RR;
import com.slz3.business.frame.response.ResInfo;
import com.slz3.business.module.orderManagement.ordOrderLogistics.domain.OrdOrderLogistics;
import com.slz3.business.module.orderManagement.ordOrderLogistics.domain.OrdOrderLogisticsCondition;
import org.springframework.stereotype.Component;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;

public class OrdOrderLogisticsResAtomic extends OrdOrderLogisticsResExecutor {

    public Mono<ServerResponse> add_$OrdOrderLogisticsUpdateLock(ServerRequest req, OrdOrderLogistics ordOrderLogistics) {
        return OrdOrderLogisticsResSafeValid.add(req, ordOrderLogistics) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.add(req, ordOrderLogistics);
    }

    public Mono<ServerResponse> delete_$OrdOrderLogisticsUpdateLock(ServerRequest req, OrdOrderLogisticsCondition ordOrderLogisticsCondition) {
        return OrdOrderLogisticsResSafeValid.delete(req, ordOrderLogisticsCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.delete(req);
    }

    public Mono<ServerResponse> modify_$OrdOrderLogisticsUpdateLock(ServerRequest req, OrdOrderLogistics ordOrderLogistics) {
        return OrdOrderLogisticsResSafeValid.modify(req, ordOrderLogistics) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.modify(req, ordOrderLogistics);
    }

    public Mono<ServerResponse> info_$OrdOrderLogisticsUpdateLock(ServerRequest req) {
        return OrdOrderLogisticsResSafeValid.info(req) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.info(req);
    }

    public Mono<ServerResponse> query_$OrdOrderLogisticsUpdateLock(ServerRequest req) {
        return OrdOrderLogisticsResSafeValid.query(req) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.query(req);
    }

    public Mono<ServerResponse> auditSubmit_$OrdOrderLogisticsUpdateLock(ServerRequest req, OrdOrderLogisticsCondition ordOrderLogisticsCondition) {
        return OrdOrderLogisticsResSafeValid.auditSubmit(req, ordOrderLogisticsCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.auditSubmit(req);
    }

    public Mono<ServerResponse> audit_$OrdOrderLogisticsUpdateLock(ServerRequest req, OrdOrderLogisticsCondition ordOrderLogisticsCondition) {
        return OrdOrderLogisticsResSafeValid.audit(req, ordOrderLogisticsCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.audit(req);
    }

    public Mono<ServerResponse> auditReject_$OrdOrderLogisticsUpdateLock(ServerRequest req, OrdOrderLogisticsCondition ordOrderLogisticsCondition) {
        return OrdOrderLogisticsResSafeValid.auditReject(req, ordOrderLogisticsCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.auditReject(req);
    }


    public Mono<ServerResponse> usingEnable_$OrdOrderLogisticsUpdateLock(ServerRequest req, OrdOrderLogisticsCondition ordOrderLogisticsCondition) {
        return OrdOrderLogisticsResSafeValid.usingEnable(req, ordOrderLogisticsCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.usingEnable(req);
    }

    public Mono<ServerResponse> usingDisable_$OrdOrderLogisticsUpdateLock(ServerRequest req, OrdOrderLogisticsCondition ordOrderLogisticsCondition) {
        return OrdOrderLogisticsResSafeValid.usingDisable(req, ordOrderLogisticsCondition) ?
                RR.fail(req, ResInfo.builder().theme(RR.SAFE_VALID).build()) :
                super.usingDisable(req);
    }
}
